<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_02')?></a>
        <a href="<?=site_url('mail')?>"><?=L('tpl_05')?></a>
    </span>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li><a href="<?=site_url('mail')?>"><?=L('tpl_04')?></a></li>
            <li class="layui-this"><a href="<?=site_url('mail/add')?>"><?=L('tpl_05')?></a></li>
        </ul>
        <div class="layui-tab-content">
            <form class="layui-form layui-form-pane" action="<?=site_url('mail/add_save')?>" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ma_01')?></label>
                    <div class="layui-input-block" onclick="cscms.show_hide('cls','sid')">
                        <input name="sid" title="<?=L('tpl_ma_02')?>" type="radio" value="1" checked>
                        <input name="sid" title="<?=L('tpl_ma_03')?>" type="radio" value="2" >
                        <input name="sid" title="<?=L('tpl_ma_04')?>" type="radio" value="3" >
                    </div>
                </div>
                <div class="layui-form-item cls cls1">
                    <label class="layui-form-label"><?=L('tpl_ma_05')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="email" value="" placeholder="<?=L('tpl_ma_06')?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text cls cls2" style="display: none;">
                    <label class="layui-form-label"><?=L('tpl_ma_05')?></label>
                    <div class="layui-input-block">
                        <textarea name="email2" placeholder="<?=L('tpl_ma_07')?>" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-form-item cls cls3" style="display: none;">
                    <label class="layui-form-label"><?=L('tpl_ma_05')?></label>
                    <div class="layui-input-inline">
                        <select class="select1" name="zu">
                            <option value="-1"><?=L('tpl_ma_08')?></option>
                            <option value="0"><?=L('tpl_ma_09')?></option>
                            <?php
                                $result=$this->db->query("select id,name from ".CS_SqlPrefix."userzu order by id asc");
                                foreach ($result->result() as $row) {
                                    echo '<option value="'.$row->id.'">'.$row->name.'</option>';
                                }
                            ?>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ma_10')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="title" value="" placeholder="<?=L('tpl_ma_10')?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-form-text" >
                    <label class="layui-form-label"><?=L('tpl_ma_11')?></label>
                    <div class="layui-input-block">
                        <textarea id="text" style="display: none;" lay-verify="content" name="neir" placeholder="" class="layui-textarea"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block noborder">
                        <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_ma_12')?></button>
                        <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_ma_13')?></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
            
<script type="text/javascript">
    cscms.init(5);
</script>
</script>
</body>
</html>